Add AI-powered spec generation and LOC coverage tracking - #19
Merged
Conversation
- Add ai module for generating specs via external AI commands (e.g. claude, ollama) - Support flat-file module discovery alongside subdirectory-based modules - Track lines-of-code coverage in addition to file coverage - Add --ai flag to generate command with fallback to template on failure - Add ai_command and ai_timeout config fields to SpecSyncConfig - Improve generate command to work when no specs exist yet - Filter empty spec directories from module detection Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
corvid-agent
added a commit
that referenced
this pull request
Mar 19, 2026
…e from PR #19 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
corvid-agent
added a commit
that referenced
this pull request
Mar 19, 2026
…e from PR #19 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
corvid-agent
added a commit
that referenced
this pull request
Mar 19, 2026
* docs: feature specsync generate as the headline for v1.2.0 The generate command and AI agent workflow were buried in a bullet list. Now they have a dedicated README section with usage examples, custom template docs, and a full generate→fill→validate→fix→enforce workflow. CHANGELOG updated to reflect the actual feature additions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: document --ai flag, aiCommand/aiTimeout config, and LOC coverage from PR #19 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: add --ai flag to all docs pages, switch to Rust-themed orange color scheme - Add --ai flag, aiCommand, aiTimeout to CLI reference, configuration, and index pages - Add ai.rs to architecture diagram - Add LOC coverage fields to coverage JSON examples - Replace blue accent with Rust-themed orange color scheme Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aimodule for generating spec content via external AI commands (e.g.claude -p,ollama run llama3) with automatic fallback to templates on failuresrc/config.rs→ moduleconfig) alongside existing subdirectory-based detection--aiflag togeneratecommand, plusai_commandandai_timeoutconfig fieldsgenerateto work when no specs exist yet; filter empty spec directories from module detectionTest plan
specsync generatescaffolds template specs for discovered modulesspecsync generate --aigenerates AI-powered specs whenai_commandis configuredspecsync coveragereports both file and LOC coveragespecsync coverage --jsonincludesloc_coverage,loc_covered,loc_total, anduncovered_filessrc/foo.rs) are detected as unspecced modules🤖 Generated with Claude Code